package com.newsee.remote.idm.controller;


import com.newsee.remote.common.bean.JsonResult;
import com.newsee.remote.idm.service.ISystemDepartmentThirdService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author liangzhichen
 * @since 2019-07-11
 */
@RestController
@RequestMapping("/idm/department")
public class SystemDepartmentThirdController {

    private final ISystemDepartmentThirdService iSystemDepartmentThirdService;

    public SystemDepartmentThirdController(ISystemDepartmentThirdService iSystemDepartmentThirdService) {
        this.iSystemDepartmentThirdService = iSystemDepartmentThirdService;
    }

    @ApiOperation(value = "增量同步idm组织信息接口")
    @GetMapping
    public JsonResult sunacOrg(@RequestParam("startTime") String startTime, @RequestParam("endTime") String endTime) {
        return iSystemDepartmentThirdService.sunacOrg(startTime, endTime);
    }

}
